package com.order.controller;

import com.order.service.OrderService;
import com.order.util.CommonResponse;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/order")
@CrossOrigin
public class OrderController {
    private OrderService orderService;
    @GetMapping("/get")
    public CommonResponse get(@RequestParam(value = "token")String token){
        return orderService.get(token);
    }
}
